//
//  WDRootThreeTableViewCell.m
//  qiJi
//
//  Created by 凤利史 on 2018/3/28.
//  Copyright © 2018年 sunrose. All rights reserved.
//

#import "WDRootThreeTableViewCell.h"

@implementation WDRootThreeTableViewCell
- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    
    if (self = [super initWithStyle:style reuseIdentifier:@"identifier"]) {
        
        [self creationView];
    }
    return self;
}
- (void)creationView{
    
    self.imgView = [[UIImageView alloc] init];
    [self addSubview:self.imgView];
    [self.imgView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.centerY.equalTo(self);
        make.left.equalTo(self).with.offset(25);
    }];
    
    self.titLab = [[UILabel alloc] init];
    [self addSubview:self.titLab];
    [self.titLab mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.equalTo(self.imgView.mas_right).with.offset(17);
        make.centerY.equalTo(self.imgView);
        make.height.offset(13*CHANGE_SIZE);
        
    }];
    self.titLab.font = [UIFont systemFontOfSize:14*CHANGE_SIZE];
    self.titLab.textColor =getColor(@"333333");
    UIView *line = [[UIView alloc] init];
    [self addSubview:line];
    [line mas_makeConstraints:^(MASConstraintMaker *make) {
        make.bottom.equalTo(self);
        make.left.equalTo(self);
        make.right.equalTo(self);
        make.height.offset(1);
        
    }];
    line.backgroundColor = getColor(@"FAFAFA");
    UIImageView *imgRig = [[UIImageView alloc] init];
    [self addSubview:imgRig];
    [imgRig mas_makeConstraints:^(MASConstraintMaker *make) {
        make.right.equalTo(self).with.offset(-25);
        make.centerY.equalTo(self);
        
    }];
    imgRig.image = [UIImage imageNamed:@"my_more_icon"];
    
}
- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
